// DCELHalfEdge.cpp: implementation of the DCELHalfEdge class.
//
//////////////////////////////////////////////////////////////////////

#include "DCELHalfEdge.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

//edited by lqw
DCELHalfEdge::DCELHalfEdge()
{

}



DCELHalfEdge::DCELHalfEdge(double time) :
twin(0), next(0), face(0), origin(0), auxData(0), displayBits(0),
globalIndex(-1), appearTime(time)
{
}

DCELHalfEdge::~DCELHalfEdge()
{

}

DCELHalfEdge* DCELHalfEdge::getPrev()
{
	DCELHalfEdge* rval = twin->next->twin;
	
	while (rval->next != this) {
		rval = rval->next->twin;
	}

	return rval;
}
